package com.drw.start.oauth2.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.oauth2.provider.ClientDetailsService;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

@Service
public class TestService {

    @Autowired
    private ClientDetailsService mcs;


    public void init() {
        System.out.println("111 ---------------------------- " + mcs);
    }
    public static void main(String[] argv) {
        List<String> a = new ArrayList<>();
        a.add("123");
        a.add("456");
        a.add("789");
        System.out.println(StringUtils.collectionToCommaDelimitedString(a));
    }
}
